package com.example.platine.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.example.platine.model.Reveil;
import com.example.platine.service.MyAlarmService;

public class AlarmReceiver extends BroadcastReceiver{

	@Override
    public void onReceive(Context context, Intent intent)
    {
	   Reveil reveil = (Reveil)intent.getExtras().getSerializable("REVEIL") ;	
       Intent service = new Intent(context, MyAlarmService.class);
       service.putExtra("REVEIL", reveil) ;
       context.startService(service);
    }   
}
